import request from '@/utils/request';

/**
 * 执行模块
 *
 * @param id
 * @param data
 * @returns Promise
 *
 * @todo 发起axios请求
 */
export const actionStatModule = <T>(name: string, params: any) => {
  return request<T>({
    url: `/admin/stat/module/${name}`,
    method: 'get',
    params
  });
};
